<?php
class IndexAction extends Action{
	
	public function _initialize(){
		if(!isset($_SESSION["pid"])){
			if(!isset($_COOKIE["pid"])){
				$this->redirect("partner/Public/login");
			}else{
				$_SESSION["pid"] = $_COOKIE["pid"];
				$_SESSION["name"] = M("Partner")->where("pid = ".$_SESSION["pid"])->find()["name"];
			}
		}
		
		$gongg = model("Xdata")->getConfig("content","placard","admin_Cms");
		$this->assign("gonggao",$gongg);
		
		$this->assign("mod","index");
	}
	
	//加载登录页面
	public function login(){
		$this->display();
	}
	//加载首页
	public function index(){

		//加载页面
		$this->display();
	}
	
	
	
}